﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.IO;

namespace Intel_Client_GUI
{
	public partial class PageinDownLoader
	{
		public PageinDownLoader()
		{
			this.InitializeComponent();

			// 在此点之下插入创建对象所需的代码。
		}

		private void On_Page_Loaded(object sender, System.Windows.RoutedEventArgs e)
		{
			// 在此处添加事件处理程序实现。
			var Vm = this.FindResource("PgDownloaderDataSource") as PluginDownloaderViewModel;
			Vm.BeginGetList();
			//System.Windows.MessageBox.Show(this.image.Source.GetType().ToString());
		}

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var Vm = this.FindResource("PgDownloaderDataSource") as PluginDownloaderViewModel;
            Vm.BeginGetImage(0);
        }
	}
}